//
//  AppConfig.swift
//  YaoXinCalculator
//
//  Created by Li Dong on 2023/6/1.
//

import UIKit

class AppConfig: NSObject {

    static var finishGuide: Bool {
        get {
            return UserDefaults.standard.bool(forKey: "finishGuide")
        }
        set {
            UserDefaults.standard.set(true, forKey: "finishGuide")
            UserDefaults.standard.synchronize()
        }
    }
    
    //协议
    static let SERVICE_URL = NSLocalizedString("https://bx9nsbdd0d9.feishu.cn/docx/UKF1ddztmoDQcgxGipgc0HLGn2d", comment: "")
    static let PRIVACY_URL = NSLocalizedString("https://bx9nsbdd0d9.feishu.cn/docx/NWQ6dVrt6oZ4QGxKtl7cK5M9nVe", comment: "")
    
    static let H5_URL = NSLocalizedString("http://yongqing.hygietech.top/zitiH5/yongqing/index.html", comment: "")
    static let H5_URL_Preview = NSLocalizedString("http://yongqing.hygietech.top/zitiH5/yongqing/index.html#/preview", comment: "")
  
    
    static var isBuy: Bool {
        set {
            UserDefaults.standard.set(newValue, forKey: "isBuy")
            UserDefaults.standard.synchronize()
        }
        get {
            return UserDefaults.standard.bool(forKey: "isBuy")
        }
    }
    
    
    static let isEnglishEnv = NSLocalizedString("中文版", comment: "") == "英文版"
    
}
